<template>
    <el-container>
      <el-aside width="200px">
        <div class="logo">黑马头条</div>
        <el-menu >
          <div @click="$router.push('/index')">
              <i class="el-icon-message"></i>文章列表
          </div>
          <div>
              <i class="el-icon-menu"></i>文章编辑
          </div>
          <div>
            <i class="el-icon-setting"></i>导航三十
          </div>
        </el-menu>
      </el-aside>
      <el-container>
        <el-header>头部</el-header>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
</template>

<script>
export default {

}
</script>
<style lang="less" scoped>
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 60px;
    .logo {
      font-size: 26px;
      color: #fff;
      background-color: #333;
    }
    .el-submenu  {
      border-bottom: 1px solid #000;
    }
  }
  .el-main {
    background-color: #E9EEF3;
    color: #333;
  }
  .el-container {
    height: 100vh;
  }
</style>